SA-MP Forums Archive
A thing that can delete all carz in my sa-mp server! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A thing that can delete all carz in my sa-mp server! (/showthread.php?tid=460055)



A thing that can delete all carz in my sa-mp server! - Charlos - 26.08.2013

Please help me i got to many carz in my server about 150+ so I want to delete all at ones! So anybody can help?


Re: A thing that can delete all carz in my sa-mp server! - Charlos - 26.08.2013

F:\SenjoritaGaming\gamemodes\SanjoritaGaming.pwn(2 675) : error 055: start of function body without function header
F:\SenjoritaGaming\gamemodes\SanjoritaGaming.pwn(2 676) : error 010: invalid function or declaration
F:\SenjoritaGaming\gamemodes\SanjoritaGaming.pwn(2 67 : error 010: invalid function or declaration
F:\SenjoritaGaming\gamemodes\SanjoritaGaming.pwn(2 680) : error 010: invalid function or declaration
F:\SenjoritaGaming\gamemodes\SanjoritaGaming.pwn(2 685) : error 010: invalid function or declaration
F:\SenjoritaGaming\gamemodes\SanjoritaGaming.pwn(2 690) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.


Re: A thing that can delete all carz in my sa-mp server! - ProjectMan - 26.08.2013

What is wrong with you? Do what I last said in your previous thread:

https://sampforum.blast.hk/showthread.php?tid=284982


Re: A thing that can delete all carz in my sa-mp server! - Charlos - 26.08.2013

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;
}




Re: A thing that can delete all carz in my sa-mp server! - ProjectMan - 26.08.2013

Quote:
Originally Posted by Charlos
Посмотреть сообщение
I got this by typing this to my pawno!
OMG, put it in ONPLAYERCOMMANDTEXT.


Re: A thing that can delete all carz in my sa-mp server! - Charlos - 26.08.2013

Sorry I am a stupid ass dum shit i am super sorry


Re: A thing that can delete all carz in my sa-mp server! - Charlos - 26.08.2013

Please tell me where is ONPLAYERCOMMANDTEXT? which part near create object?


Re: A thing that can delete all carz in my sa-mp server! - ProjectMan - 26.08.2013

You're gonna get banned so fast...
PM your game mode to me or post it here... At this rate, it's the only way you can make it work...


Re: A thing that can delete all carz in my sa-mp server! - Charlos - 26.08.2013

Do you have skype we can skype
And i will send you though skype


Re: A thing that can delete all carz in my sa-mp server! - Skribblez - 26.08.2013

Quote:
Originally Posted by Charlos
Посмотреть сообщение
Please tell me where is ONPLAYERCOMMANDTEXT? which part near create object?
You could just press "CTRL+F" (Windows) then type in OnPlayerCommandText if you're really hard up on finding it.