- Joined
- Jul 6, 2010
- Messages
- 352
- Reaction score
- 126
PHP:
#region :reccomend <user>
case "reccomend": // reccomend a user for nypd
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
if (User._Username == args[1]);
{
sendData("BK" + "Sorry, you cant recommend yourself.");
}
else
{
virtualUser User = userManager.getUser(args[1]);
dbClient.runQuery("UPDATE users SET becomenypd = '1', reccomendnypd = reccomendnypd + '1' WHERE name = '" + User._Username + "'");
User.sendData("BK" + "You have been reccomended by '" + _Username + "' to be NYPD");
sendData("BK" + "You have reccomended '" + User._Username + "' to be NYPD");
}
}
break;
}
#endregion
shud say Sorry, you cant recommend yourself. if u try.
and added
Xavi.