06.05.2012, 15:24
pawn Код:
if(strcmp(cmd, "/localspawn", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "|________________________________________|");
SendClientMessage(playerid, COLOR_WHITE, "/localspawn [nome]");
SendClientMessage(playerid, COLOR_WHITE, "Nomes Disponнveis: hq, casa");
SendClientMessage(playerid, COLOR_GREY, "|________________________________________|");
return 1;
}
if(strcmp(tmp, "hq", true) == 0)
{
if(PlayerInfo[playerid][pPhousekey] != 255)
{
LocalSpawn[playerid] = 0;
SendClientMessage(playerid, COLOR_GREY, "Agora vocк irб spawnar na HQ.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк precisa ter casa para usar esse comando");
return 1;
}
}
else if(strcmp(tmp, "casa", true) == 0)
{
if(PlayerInfo[playerid][pPhousekey] != 255)
{
LocalSpawn[playerid] = 1;
SendClientMessage(playerid, COLOR_GREY, "Agora vocк irб spawnar em casa.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк precisa ter casa para usar esse comando");
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_GREY, "/localspawn [nome]");
return 1;
}
}