if (strcmp(cmd, "/spc", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spc(Special Person Chat) [playerid/PartOfName] [reason]");
return 1;
}
if (PlayerInfo[playerid][pAge] == 310518 )
{
SendClientMessage(playerid, COLOR_YELLOW, " My penis is very Tiny ";
return 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, " My penis is really big ";
return 1;
}
}
return 1;
}
|
Код:
if (strcmp(cmd, "/spc", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spc(Special Person Chat) [playerid/PartOfName] [reason]");
return 1;
}
if (PlayerInfo[playerid][pAge] == 310518 )
{
SendClientMessage(playerid, COLOR_YELLOW, " My penis is very Tiny ";
return 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, " My penis is really big ";
return 1;
}
}
return 1;
}
(PS: Im actualy trying to make an person able to ajail & ban which should be possible if he got 310518 as age, But i think i can do that if this is fixed) |
|
Yea.. Hmm...
Well look i got this script from my friend and im trying to learn the basics, Im trying to do that by making small commands like SendclientmessageALL But this stuff isn't working, I would appreciate it if you make the Pawno Code for me in the way that will make it work. Than i can look whats different and make other commands based on this. |
command(test, playerid, params[])
{
new string[128];
format(string, sizeof(string), "Server : %s", params);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 1;
}
goodluck !