03.08.2011, 17:50
Is there any way to get players Vehicle ,example:
You must in a Checkpoint and you vehicle must be a Infernus,if not SendClientMessage(playerid,0xFFFFFFFF,"Bla bla !");
My code:
public OnPlayerEnterCheckpoint(playerid)
{
if(CPS_IsPlayerInCheckpoint(playerid, reinigung))//using cploader
{
if(IsPlayerInRangeOfPoint(playerid,2.0,333374,-1698.459716,20.215881))
{
IsPlayerInAnyVehicle(574);
GivePlayerMoney(playerid,20);
SendClientMessage(playerid,0x939795FF,"You received 20 Euros!");
}else{
SendClientMessage(playerid,0x939795FF,"You havenґt a Sweeper!");
}
}
return 1;
}
The Problem:
If I drive with me Sweeper into the CP he says I dont have a sweeper...
You must in a Checkpoint and you vehicle must be a Infernus,if not SendClientMessage(playerid,0xFFFFFFFF,"Bla bla !");
My code:
public OnPlayerEnterCheckpoint(playerid)
{
if(CPS_IsPlayerInCheckpoint(playerid, reinigung))//using cploader
{
if(IsPlayerInRangeOfPoint(playerid,2.0,333374,-1698.459716,20.215881))
{
IsPlayerInAnyVehicle(574);
GivePlayerMoney(playerid,20);
SendClientMessage(playerid,0x939795FF,"You received 20 Euros!");
}else{
SendClientMessage(playerid,0x939795FF,"You havenґt a Sweeper!");
}
}
return 1;
}
The Problem:
If I drive with me Sweeper into the CP he says I dont have a sweeper...