A thing that can delete all carz in my sa-mp server!
#4

I got this by typing this to my pawno!

Quote:

public OnPlayerText(playerid, text[])
{
if(text[0] == '*' && PInfo[playerid][Admin] >= 1)
{
new str[256]; GetPlayerName(playerid,str,sizeof(str));
format(str,sizeof(str),"Admin Chat: {B4B5B7}%s: %s",str,text[1]);
AdminPrivateChat(COLOR_RED,str);
SaveLogs("AdminChat",str);
return 0;
}
if(text[0] == '@' && PInfo[playerid][VIP] == 1)
{
new str[256]; GetPlayerName(playerid,str,sizeof(str));
format(str,sizeof(str),"VIP Chat: {B4B5B7}%s: %s",str,text[1]);
VIPPrivateChat(COLOR_YELLOW,str);
SaveLogs("VIPChat",str);
return 0;
}
if(PInfo[playerid][pMute] == 1) {
SendClientMessage(playerid, COLOR_RED, "You are muted, no one can hear you!");
return 0; }
return 1;
}
{
if( strcmp( cmdtext, "/deleteallcars", true ) == 0 )
{
for( new veh; veh < MAX_VEHICLES; veh ++ )
{
if ( veh != INVALID_VEHICLE_ID )
{
DestroyVehicle( veh );
}
}
return 1;
}



return 0;
}

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)