destroy object
#6

appologies for double post,

just thaught

try this ( not tested)

new killer[MAX_PLAYERS];

OnGameModeInit

killer = 0;

Then in ur code

if (strcmp("/createminigun", cmdtext, true, 14) == 0)
if (GetPlayerScore(killerid) == 10)
{
killer = 0;
new Float:createx, Float:createy, Float:createz, Float:Rotation;
GetPlayerPos(playerid,createx,createy,createz);
GetPlayerFacingAngle(playerid,Rotation);
SaveMinigunDataToLog(CreateMinigun(createx,createy ,createz -1,Rotation,10,4,true),"blub");
return 1

then something like if killer = 1;
{
SendClientMessage(playerid,COLOR_RED,"Error,You have used this already");
}

Not testedd, Just anexample
Reply


Messages In This Thread
destroy object - by 02manchestera - 28.03.2010, 12:54
Re: destroy object - by [LSR]State_Trooper - 28.03.2010, 12:57
Re: destroy object - by 02manchestera - 28.03.2010, 12:59
Re: destroy object - by 02manchestera - 28.03.2010, 13:05
Re: destroy object - by [LSR]State_Trooper - 28.03.2010, 13:08
Re: destroy object - by [LSR]State_Trooper - 28.03.2010, 13:14
Re: destroy object - by 02manchestera - 28.03.2010, 13:26
Re: destroy object - by [LSR]State_Trooper - 28.03.2010, 13:31

Forum Jump:


Users browsing this thread: 1 Guest(s)