// comando reparar
if (!strcmp("/concertar", cmdtext))
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0x33AA33AA, "Seu Veiculo Foi Reparado!");
}
else SendClientMessage(playerid, 0xAA3333AA, "Voce nao está no veiculo!");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
// comando god car
if (strcmp("/gc", cmdtext, true) == 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{00FF7F}[INFO]: {FFFFFF}%s Ligou o GodCar{00FF7F} (/godcar)", pname);
SendClientMessageToAll(0x00F400AA, string);
SetVehicleHealth(GetPlayerVehicleID(playerid),99999*99999);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
// comando mudar
if (strcmp("/mudar", cmdtext, true, 10) == 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{00F673}%s{F6DF00} mudou de gang: {00F673}/mudar ", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
ForceClassSelection(playerid);
SetPlayerHealth(playerid, 0);
return 1;
}
// comando kill
if (strcmp("/kill", cmdtext, true, 10) == 0){
SetPlayerHealth(playerid, 0);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{00F673}%s{F6DF00} se matou:{00F673} /kill", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
return 1;
}
// Comando pm
if(!strcmp(cmd,"/pm",true))
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
return SendClientMessage(playerid,0xFF0000AA,"[USO CORRETO] /pm [playerid] [mensagem]");
new id = strval(tmp);
if(id == playerid)
{
SendClientMessage(playerid,0xFF0000AA,"[ERRO] Você não pode enviar PM pra você mesmo.");
return 1;
}
if(IsPlayerConnected(id)){
new txt[256];
txt = strtok(cmdtext,idx);
if(!strlen(txt))
return SendClientMessage(playerid,0xFF0000AA,"[USO CORRETO] /pm [playerid] [mensagem]");
new pName[MAX_PLAYER_NAME],RecName[MAX_PLAYER_NAME];
GetPlayerName(id, RecName, sizeof(RecName));
GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerName(id, RecName, sizeof(RecName));
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
PlayerPlaySound(id,1057,0.0,0.0,0.0);
format(string, sizeof(string), "[PM] Menssagen Recebida %s[%i]: %s", pName, playerid, cmdtext[6]);
SendClientMessage(id,COLOR_YELLOW, string);
SendClientMessage(playerid,COLOR_YELLOW, " Menssagem Privada emviada com sucesso.!");
format(string, sizeof(string), "[PM] Enviada para %s[%i]: %s", RecName, id, cmdtext[6]);
SendClientMessage(playerid,COLOR_YELLOW, string);
} else {
SendClientMessage(playerid,0xFF0000AA,"[ERRO] O jogador não está conectado.");
}
return 1;
}
Assinar:
Postar comentários
0 comentários:
Postar um comentário
- Sem Divulgar Links
- Sem Chingar ninguem
- Sem Falar de outro blog
- Obrigado -