04.02.2014, 02:38
(
Последний раз редактировалось GrassHopper101; 04.02.2014 в 02:41.
Причина: No smileys
)
Heres the script.
if(GetPlayerMoney(playerid) < 1000000)
{
SendClientMessage(playerid,red,"You don't have a million dollars!");
}
else
{
new Float: w, Float:y, Float:z;
GetPlayerPos(playerid,w,y,z);
CreateVehicle(432 , w, y+10, z+7,0, 0, 1,-1);
GivePlayerMoney(playerid,-1000000);
SendClientMessage(playerid,white,"You were also given free armor!");
SetPlayerArmour(playerid,100);
}
And the script works just fine, but I can't figure out how to tweak it so that the tank won't respawn after it is destroyed.
if(GetPlayerMoney(playerid) < 1000000)
{
SendClientMessage(playerid,red,"You don't have a million dollars!");
}
else
{
new Float: w, Float:y, Float:z;
GetPlayerPos(playerid,w,y,z);
CreateVehicle(432 , w, y+10, z+7,0, 0, 1,-1);
GivePlayerMoney(playerid,-1000000);
SendClientMessage(playerid,white,"You were also given free armor!");
SetPlayerArmour(playerid,100);
}
And the script works just fine, but I can't figure out how to tweak it so that the tank won't respawn after it is destroyed.