02.08.2011, 13:29
i tried to make my own here is wat it is
pawn Код:
dcmd_respawnveh(playerid, params[])
{
if(!CmdLevelCheck(playerid,"respawnveh")) return CmdLevelError(playerid,"respawnveh");
new id, tmp[128];
if(sscanf(params, "uz", id, tmp)) return SendClientMessage(playerid, RED, "USAGE: /RESPAWNVEH [ID]");
format(tmp, sizeof tmp, "",Car(id), AdminName(playerid), (tmp[0]) ? ("") : ("."), tmp[0], (tmp[0]) ? (" ]") : (""));
SendClientMessageToAll(YELLOW, tmp), print(tmp), SaveToLog("respawnvehs",tmp), SetInfo(id,"respawnvehs",GetInfo(id,"Respawnvehs")+1);
SendCommandMsg(playerid,"respawnveh");
format(tmp,sizeof(tmp),"",AdminName(playerid));
SpecialLeaveReason[id]=1,PlayerLeaveReason[id]=tmp;
return respawnveh(id);
}