if(strcmp(cmd, "/blockveh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "UTILIZEAZA: /blockveh [ID vehicul]");
return 1;
}
if(IsACop(playerid))
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GameTextForPlayer(playa, "~r~Vehicul Oprit de la Telecomanda", 5000, 3);
SendClientMessage(playerid, COLOR_BLACK, "Ai apasat butonul 'Oprit' de pe telecomanda si ai oprit masina momeala.");
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Nu esti autorizat pentru folosirea comenzii!");
}
}
return 1;
}