PHP код:
if (strcmp("/tieshoes", cmdtext, true, 10) == 0){
if(ShoeTies[playerid] == 0){
ShoeTies[playerid] = 1;
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
SendClientMessage(playerid,-1,"Вы завязали шнурки!");
GameTextForPlayer(playerid,"~g~Shoes tied",3000,3);
return 1;
}
if(ShoeTies[playerid] == 1){
ShoeTies[playerid] = 0;
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
SendClientMessage(playerid,-1,"Вы развязали шнурки!");
GameTextForPlayer(playerid,"~r~Shoes untied",3000,3);
}
return 1;
}