26.01.2012, 22:20
Bom quero que Alguem fassa um Cmd pra mim /settime sу para Admins que Setб o Player para HQ se ele for Civil seta para o Spawn Civil entenderam ? Por favor to precisando Muito

if(strcmp(cmd, "/levarhq", true) == 0 || strcmp(cmd, "/settime", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
MSGPLAYER(playerid, COLOR_GRAD2, "USE: /levarhq [id]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(admtrampando[playerid] < 1)
{
MSGPLAYER(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
SetPlayerWeapons(para1);
SetPlayerSpawn(para1);
ClearCrime(para1);
format(string, sizeof(string), " Vocк foi levado ao Spawn por %s", sendername);
MSGPLAYER(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " Vocк levou %s a seu Spawn.", giveplayer);
MSGPLAYER(playerid, COLOR_LIGHTBLUE, string);
}
}
}
else
{
MSGPLAYER(playerid, COLOR_GRAD1, " Vocк nгo estб autorizado a usar este comando!");
}
}
return 1;
}