24.12.2012, 19:13
i want to make..
if is player VIP can block PMs, if isn't cant block PMs xD but i have little problems...
if is player VIP can block PMs, if isn't cant block PMs xD but i have little problems...
Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(1526) : error 017: undefined symbol "NoPM" C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(1531) : error 017: undefined symbol "NoPM" C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(2880) : warning 217: loose indentation
Код:
CMD:togpm(playerid, params[])
{
if(PlayerInfo[playerid][VIP] == 1)
{
PlayerInfo[playerid][NoPM] = 1;
SendClientMessage(playerid, COLOR_GREEN, "[SERVER]You are no longer accepting private messages");
}
else
{
PlayerInfo[playerid][NoPM] = 0;
SendClientMessage(playerid, COLOR_GREEN, "[SERVER]You are now accepting private messages");
}
return 1;
}

