05.01.2011, 19:38
(
Последний раз редактировалось Michael@Belgium; 08.01.2011 в 09:27.
Причина: Gived up !
)
Yeah, idk how it possible ? When i start my server for the first time and later ... but now it don't work anymore.
First the server says: SERVER: unknown cmd or second: nothing happen ...
Here is the pawn code:
AAAA I GIVE IT UP DUDE ! Stupid server, samp ... things xD
First the server says: SERVER: unknown cmd or second: nothing happen ...
Here is the pawn code:
pawn Код:
if(strcmp("/freeze", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
if(!strlen(cmdtext[8])) return SendClientMessage(playerid, 0xFF0000AA, "Use: /freeze [playerid]");
new gp = strval(cmdtext[8]);
if(!IsPlayerConnected(gp)) return SendClientMessage(playerid, 0xFF0000AA, "Invalid Playerid");
new pn[24], an[24], str[70];
GetPlayerName(playerid, an, 24); GetPlayerName(gp, pn, 24);
format(str, sizeof(str), "%s is frozen by admin %s", pn, an);
SendClientMessageToAll(0xA9A9A9AA, str);
TogglePlayerControllable(gp, 0);
return 1;
}
}
if(strcmp("/unfreeze", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
if(!strlen(cmdtext[10])) return SendClientMessage(playerid, 0xFF0000AA, "Use: /unfreeze [playerid]");
new gp = strval(cmdtext[10]);
if(!IsPlayerConnected(gp)) return SendClientMessage(playerid, 0xFF0000AA, "Invalid Playerid");
new pn[24], an[24], str[70];
GetPlayerName(playerid, an, 24); GetPlayerName(gp, pn, 24);
format(str, sizeof(str), "%s is unfrozen by admin %s", pn, an);
SendClientMessageToAll(0xA9A9A9AA, str);
TogglePlayerControllable(gp, 1);
return 1;
}
}