30.12.2012, 19:30
I create a script but when I type the command, the command doesn't work...
My script:
Thanks for helping me and sorry for my english!
My script:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/lancerderby", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid) && (derby == 0) && IsPlayerAdmin(playerid)){
derby = 1;
SendClientMessageToAll(0xDEEE20FF, "Un admin a lancй un derby, /rejoindrederby pour le rejoindre."); }
return 1;
}
if (strcmp("/fermerderby", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid) && (derby == 1) && IsPlayerAdmin(playerid)) {
derby = 0;
SendClientMessageToAll(0xDEEE20FF, "Le derby est maintenant terminй."); }
return 1;
}
if (strcmp("/rejoindrederby", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid) && (derby == 1)) {
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,2499.3069,2981.0603,2.3494);
SendClientMessage(playerid, 0xDEEE20FF, "Rejoins une des voiture placйes sur la piste!."); }
return 1;
}
return 0;
}