Help me Car wont despawn with command - 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: Help me Car wont despawn with command (
/showthread.php?tid=340676)
Help me Car wont despawn with command -
AMEENAMEEN - 08.05.2012
pawn Код:
if(strcmp(cmd,"/despawncopcar",true)==0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] != 6)
{
//SendClientMessage(playerid, COLOR_GREY, " You are not a Police Officer.");
//return 1;
}
for(new car = 0; car < MAX_VEHICLES; car++)
{
if(CopInfo[car][Created] == 0)
{
if(strcmp(CopInfo[car][Owner], sendername, true) == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Police Vehicle Despawned !");
SetVehicleToRespawn(car);
return 1;
}
}
else
{
return SendClientMessage(playerid, COLOR_GREY, " An error has occured.");
}
}
return 1;
}
return 1;
whats wrong in this
Re: Help me Car wont despawn with command -
HDFord - 08.05.2012
Are you sure "car" is the right vehicleid?
Re: Help me Car wont despawn with command -
Issam - 21.05.2012
Fixed and sent in PM.