01.09.2016, 11:26
I have this stevw command
Problem is that it won't send message to admin nor player fwhen changing virtual world of player..
PHP код:
CMD:setvw(playerid, params[])
{
if(PlayerInfo[playerid][Admin] < 2) return ERROR(playerid, "Vi ne mozete korisiti ovu komandu!");
new igrac, vw, string1[80], string2[60];
if(sscanf(params, "ud", igrac, vw)) return KORISTI(playerid, "/setvw [playerid/dio imena] [vw id]");
SetPlayerVirtualWorld(igrac, vw);
format(string1, sizeof(string1), S_SRVBOJA, "Info: "S_BIJELA"Uspjesno ste postavili virtualworld %d igracu %s!", vw, GetName(igrac));
SCM(playerid, -1, string1);
format(string2, sizeof(string2), S_SRVBOJA, "Info: "S_BIJELA"Admin vam je podesio virtualworld %d!", vw);
SCM(igrac, -1, string2);
return 1;
}